home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
smaltalk
/
manchest.lha
/
MANCHESTER
/
manchester
/
2.2
/
mushrooms.st
< prev
next >
Wrap
Text File
|
1993-07-24
|
2KB
|
111 lines
" NAME mushrooms
AUTHOR miw@cs.man.ac.uk
FUNCTION some mushroom cursors
ST-VERSIONS 2.2
PREREQUISITES
CONFLICTS
DISTRIBUTION world
VERSION 1.1
DATE 22 Jan 1989
SUMMARY mushrooms
defines a number of new mushroom-based cursors.(2.2). MIW
"!
'From Smalltalk-80, version 2, of April 1, 1983 on 19 February 1987 at 4:12:08 pm'!
Cursor addClassVarName: 'Poisonous'!
Cursor addClassVarName: 'Edible'!
Cursor addClassVarName: 'Inedible'!
!Cursor class methodsFor: 'class initialization'!
initializeMushroomCursors
Poisonous _ (Cursor
extent: 16@16
fromArray: #(
2r11111100000
2r111111110000
2r1111111111000
2r1111111111000
2r1100110011000
2r1000110001000
2r1101111011000
2r111001110000
2r11111100000
2r1100011111100011
2r1111000110001111
2r111001110000
2r110000000
2r111001110000
2r1111000000001111
2r1100000000000011)
offset: -8@-12).
Edible _ (Cursor
extent: 16@16
fromArray: #(
2r100000000000
2r10010011000000
2r1001000110000
2r100100100001000
2r10010110000100
2r1001110000100
2r100111111000010
2r100011111100010
2r100000000110010
2r100000000111010
2r10010000011100
2r10001111001100
2r1000000001110
2r110000110110
2r1111000011
2r1)
offset: -2@-2).
Inedible _ (Cursor
extent: 16@16
fromArray: #(
2r1111000000
2r110000110000
2r11000000001100
2r100000000000010
2r1000011001000001
2r1111111001111111
2r1001000000
2r1000001001000001
2r110010000100110
2r1110000111000
2r11001100000
2r10110100000
2r11001100000
2r1101001011000
2r110000110000110
2r1000000000000001)
offset: -8@-8)
"Cursor initializeMushroomCursors"! !
!Cursor class methodsFor: 'constants'!
edible
"Yum yum"
^Edible! !
!Cursor class methodsFor: 'constants'!
inedible
"Yuk"
^Inedible! !
!Cursor class methodsFor: 'constants'!
poisonous
"Death's head cursor"
^Poisonous! !
Cursor initializeMushroomCursors! !